Tootsville::Legal-Age

Function

Legal-Age names a function, with lambda list (DATE-OF-BIRTH &OPTIONAL (REFERENCE-DATE (NOW))):

The age of a person born on DATE-OF-BIRTH, as of REFERENCE-DATE (or right now)

This uses the legal definition that the person's age increments at the midnight of their date of birth each year, with the date 29 February treated as 1 March on non-leap-years.

The time zone used for this computation is the not defined, however, yielding rather irregular behaviour depending on time zones and the like.

TODO: Determine in what time zone we should compute this for legal reasons, eg, COPPA.

File

Defined in file src/types/date+time.lisp.